package mill.hibernate.dto;
// Generated Nov 9, 2012 1:38:05 PM by Hibernate Tools 3.2.1.GA


import java.util.Date;
import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import static javax.persistence.GenerationType.IDENTITY;
import javax.persistence.Id;
import javax.persistence.Table;
import javax.persistence.Temporal;
import javax.persistence.TemporalType;
import javax.persistence.UniqueConstraint;

/**
 * WeightNoteRef_mill generated by hbm2java
 */
@Entity
@Table(name="weight_note_ref"
    ,catalog="sw_wsmill"
    , uniqueConstraints = @UniqueConstraint(columnNames="ref_number") 
)
public class WeightNoteRef_mill  implements java.io.Serializable {


     private Integer id;
     private String refNumber;
     private Integer wnId;
     private Date date;
     private Date time;
     private Byte packingId;
     private Short noOfBags;
     private Double grossWeight;
     private Double tareWeight;
     private Double netWeight;
     private Integer scaleId;
     private String palletId;
     private Byte status;

    public WeightNoteRef_mill() {
    }

    public WeightNoteRef_mill(String refNumber, Integer wnId, Date date, Date time, Byte packingId, Short noOfBags, Double grossWeight, Double tareWeight, Double netWeight, Integer scaleId, String palletId, Byte status) {
       this.refNumber = refNumber;
       this.wnId = wnId;
       this.date = date;
       this.time = time;
       this.packingId = packingId;
       this.noOfBags = noOfBags;
       this.grossWeight = grossWeight;
       this.tareWeight = tareWeight;
       this.netWeight = netWeight;
       this.scaleId = scaleId;
       this.palletId = palletId;
       this.status = status;
    }
   
     @Id @GeneratedValue(strategy=IDENTITY)
    
    @Column(name="id", unique=true, nullable=false)
    public Integer getId() {
        return this.id;
    }
    
    public void setId(Integer id) {
        this.id = id;
    }
    
    @Column(name="ref_number", unique=true, length=30)
    public String getRefNumber() {
        return this.refNumber;
    }
    
    public void setRefNumber(String refNumber) {
        this.refNumber = refNumber;
    }
    
    @Column(name="wn_id")
    public Integer getWnId() {
        return this.wnId;
    }
    
    public void setWnId(Integer wnId) {
        this.wnId = wnId;
    }
    @Temporal(TemporalType.DATE)
    @Column(name="date", length=10)
    public Date getDate() {
        return this.date;
    }
    
    public void setDate(Date date) {
        this.date = date;
    }
    @Temporal(TemporalType.TIME)
    @Column(name="time", length=8)
    public Date getTime() {
        return this.time;
    }
    
    public void setTime(Date time) {
        this.time = time;
    }
    
    @Column(name="packing_id")
    public Byte getPackingId() {
        return this.packingId;
    }
    
    public void setPackingId(Byte packingId) {
        this.packingId = packingId;
    }
    
    @Column(name="no_of_bags")
    public Short getNoOfBags() {
        return this.noOfBags;
    }
    
    public void setNoOfBags(Short noOfBags) {
        this.noOfBags = noOfBags;
    }
    
    @Column(name="gross_weight", precision=9, scale=3)
    public Double getGrossWeight() {
        return this.grossWeight;
    }
    
    public void setGrossWeight(Double grossWeight) {
        this.grossWeight = grossWeight;
    }
    
    @Column(name="tare_weight", precision=9, scale=3)
    public Double getTareWeight() {
        return this.tareWeight;
    }
    
    public void setTareWeight(Double tareWeight) {
        this.tareWeight = tareWeight;
    }
    
    @Column(name="net_weight", precision=9, scale=3)
    public Double getNetWeight() {
        return this.netWeight;
    }
    
    public void setNetWeight(Double netWeight) {
        this.netWeight = netWeight;
    }
    
    @Column(name="scale_id")
    public Integer getScaleId() {
        return this.scaleId;
    }
    
    public void setScaleId(Integer scaleId) {
        this.scaleId = scaleId;
    }
    
    @Column(name="pallet_id", length=15)
    public String getPalletId() {
        return this.palletId;
    }
    
    public void setPalletId(String palletId) {
        this.palletId = palletId;
    }
    
    @Column(name="status")
    public Byte getStatus() {
        return this.status;
    }
    
    public void setStatus(Byte status) {
        this.status = status;
    }




}


